<template>
  <div>
    <h1> 订单 </h1>
      <p v-for="i in list">
          姓名:{{i.name}}--标题:{{i.title}}--价格:{{i.price}}--
        ID:{{i.member}}--手机号码:{{i.phone}}
      </p>
  </div>
</template>

<script>
    export default {
      data(){
        return{
          list:[],
          uid:this.$route.params.id
        }
      },
      created() {
        axios({
          url:'http://127.0.0.1:8000/app02/showorder/'+this.uid,
          method:'get'
        }).then(res=>{
          console.log(res)
          this.list=res.data
        })
      }
    }
</script>